package com.zyh.websocket.service.chat.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyh.websocket.entity.Message;
import com.zyh.websocket.mapper.MessageMapper;
import com.zyh.websocket.service.chat.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZYH
 * @version 1.0
 * @date 2025-03-22
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements MessageService {

    @Autowired
    private MessageMapper messageMapper;

    @Override
    public List<Message> getMyInboxMessages(Message message) {
        return messageMapper.selectTMessageList(message);
    }
}
